#include "dma_heap.h"

static mt_heap_t dma_heap;

void mt_dma_heap_init(void *begin_addr, void *end_addr)
{
    mt_heap_init(&dma_heap, "dma_heap", begin_addr, end_addr);
}

void *mt_dma_malloc(mt_size_t size)
{
    return mt_heap_alloc(&dma_heap, size);
}

void mt_dma_free(void *p)
{
    mt_heap_free(&dma_heap, p);
}
